var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, i = arguments.length, a = i < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, o, n); else for (var c = t.length - 1; 0 <= c; c--) (r = t[c]) && (a = (i < 3 ? r(a) : 3 < i ? r(e, o, a) : r(e, o)) || a);
    return 3 < i && a && Object.defineProperty(e, o, a), a;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("AdManager"), s = e("WebManager"), c = cc._decorator, l = c.ccclass, d = c.property, u = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.tag = "base_native", t.root = null, t.imgSprite = null, t;
    }
    return i(t, e), t.prototype.onLoad = function() {
        this.loadNativeAd();
    }, t.prototype.onEnable = function() {
        this.showNativeAd();
    }, t.prototype.onClickClose = function() {
        s.default.getInstance().sentLog("点击关闭信息流广告"), this.hideNativeAd();
    }, t.prototype.loadNativeAd = function() {}, t.prototype.showNativeAd = function() {
        r.default.getInstance().nativeFlag && (this.root.active = !0, r.default.getInstance().nativeFlag = 0);
    }, t.prototype.hideNativeAd = function() {
        this.root.active = !1;
    }, a([ d ], t.prototype, "tag", void 0), a([ d(cc.Node) ], t.prototype, "root", void 0), 
    a([ d(cc.Sprite) ], t.prototype, "imgSprite", void 0), a([ l ], t);
}(cc.Component);

n.default = u;